package com.changhongit.controller.wemeet;

import com.changhongit.common.Result;
import com.changhongit.service.wemeet.WeUserService;
import com.tencentcloudapi.wemeet.common.exception.WemeetSdkException;
import com.tencentcloudapi.wemeet.models.user.QueryUsersRequest;
import com.tencentcloudapi.wemeet.models.user.QueryUsersResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "腾讯会议用户接口")
@RequestMapping("/wemeet/user")
public class WeUserController {
    @Autowired
    WeUserService userService;
    @ApiOperation("分页查询腾讯会议用户")
    @GetMapping
    public Result QueryUser() throws WemeetSdkException {
        QueryUsersRequest queryUsersRequest = new QueryUsersRequest();

        QueryUsersResponse response = userService.QueryListUsers();
        return Result.ok(response);
    }
}
